<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>

	<f:view>

		<h:form>

			<h3>
				<h:outputText value="#{msg['hola']}" />
			</h3>
			<h:panelGrid columns="2">
 
		<h:outputText value="#{msg['lenguaje']}" /> 
		<h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
					valueChangeListener="#{language.countryLocaleCodeChanged}">
					<f:selectItems value="#{language.countriesInMap}" />
				</h:selectOneMenu>

			</h:panelGrid>
			<h:panelGrid columns="3">
				<h:outputFormat>
					<h:outputText value="#{msg['usuario']}" rendered="true"></h:outputText>
					<h:inputText id="txtUserName" value="#{loginBean.username}"
						required="true" requiredMessage="#{msg['escribeusuario']}"></h:inputText>
					<h:message for="txtUserName" style="color:red"></h:message>
					<br>
					<h:outputText value="#{msg['password']}" rendered="true"></h:outputText>
					<h:inputSecret id="txtPassword" value="#{loginBean.password}"
						required="true" requiredMessage="#{msg['escribepassword']}"></h:inputSecret>
					<h:message for="txtPassword" style="color:red"></h:message>
				</h:outputFormat>
			</h:panelGrid>
			<h:commandButton value="login" action="login"></h:commandButton>
		</h:form>

	</f:view>
</body>
</html>